<?php

namespace app\api\controller\campus;

use app\api\controller\Controller;
use app\api\model\campus\CoursesCategory as CampusCoursesCategoryModel;

/**
 * 校区专业控制器
 * Class Goods
 * @package app\api\controller
 */
class CoursesCategory extends Controller
{
    /**
     * 专业列表
     * @params int $campus_id
     * @return array
     * @throws \think\exception\DbException
     */
    public function index($campus_id)
    {
        // 专业列表
        $model = new CampusCoursesCategoryModel;
        $list = $model->getList($campus_id);
        // 专业列表
        return $this->renderSuccess(compact( 'list'));
    }


}
